package com.javasm.springmybatis.controller;


import com.javasm.springmybatis.entity.Admin;
import com.javasm.springmybatis.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author whl
 * @since 2021-12-29
 */
@RestController
@RequestMapping("admin")
public class AdminController {

    @Autowired
    private IAdminService adminService;

    @RequestMapping("list")
    public List<Admin>list() {
        return adminService.list();
    }
}
